package edu.spec.wyn.week08.book.unit3;

public class Juxing {
    double chang;
    double kuan;
    public Juxing() {
        this.chang=13;
        this.kuan=2;
    }
    public void calc() {
        double S=chang*kuan;
        System.out.println("矩形的长是："+this.chang+" "+"宽是："+this.kuan+" "+"面积是："+S);
    }
    public static void main(String[] args) {
        Juxing jx=new Juxing();
        jx.calc();
    }
}
